$('.reg').click(function(){
    let acc = $('#acc').val();
    let pas = $('#pas').val();
    console.log(acc);
    $.ajax({
        url:'/users/register',
        type:'post',
        data:{
            username:acc,password:pas
        },
        success(res){
            console.log(res);
        }
    })
})